|
Расположение в меню |
---|
Деталь → Примитивы → Создать трубу |
Верстаки |
Part(Деталь) |
Быстрые клавиши |
Нет |
Представлено в версии |
0.19 |
См. также |
Создать примитивы |
Команда Создать Трубу вставляет трубку в активный документ. Труба геометрически рассматривается как вырез меньшего цилиндра из большего. По умолчанию команда создаст трубку высотой 10 мм с наружным радиусом 5 мм и внутренним радиусом 2 мм. Эти параметры могут быть изменены после добавления объекта.
Трубу можно создать следующими способами:
A Part Tube object created with the scripting example below is shown here.
See also: Property editor.
A Part Tube object is derived from a Part Feature object and inherits all its properties. It also has the following additional properties:
Attachment
The object has the same attachment properties as a Part Part2DObject.
Tube
See also: Autogenerated API documentation, Part scripting and FreeCAD Scripting Basics.
A Part Tube can be created with the addTube()
method (introduced in version 0.20) of the Shapes module:
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
"myTube"
is the name for the object.Example:
import FreeCAD as App
from BasicShapes import Shapes
doc = App.activeDocument()
tube = Shapes.addTube(FreeCAD.ActiveDocument, "myTube")
tube.Height = 20
tube.InnerRadius = 2
tube.OuterRadius = 3
tube.Placement = App.Placement(App.Vector(2, 4, 5), App.Rotation(60, 60, 30))
doc.recompute()